import {defineStore} from 'pinia'
// 【使用】
//import storeLayout from "@/store/layoutStore.ts";
//
//storeLayout().count


//注意括号
//storeLayout().closeMenu  ✔️
//storeLayout.closeMenu    ❌
export default defineStore('layoutStore', {
    state: () => {
        return {
            isRefresh: false,
            layoutType: "default",//布局样式
            //
            //
            openSetting: false,
            closeMenu: false,
        }
    },
    actions: {
        setState(key: string, val: any) {
            (this as any)[key] = val;
        }
    },
})
